import request from '@/utils/request'

// 查询数据采集-点位列表
export function listCollectPoint(query) {
  return request({
    url: '/manager/collectPoint/list',
    method: 'get',
    params: query
  })
}
// 查询数据采集-点位所有列表
export function listAllCollectPoint(query) {
  return request({
    url: '/manager/collectPoint/listAll',
    method: 'get',
    params: query
  })
}
// 查询数据采集-点位详细
export function getCollectPoint(pointId) {
  return request({
    url: '/manager/collectPoint/getInfo/' + pointId,
    method: 'get'
  })
}

// 新增数据采集-点位
export function addCollectPoint(data) {
  return request({
    url: '/manager/collectPoint/add',
    method: 'post',
    data: data
  })
}

// 批量新增数据采集-点位
export function batchAddCollectPoint(data) {
  return request({
    url: '/manager/collectPoint/batchAdd',
    method: 'post',
    data: data
  })
}

// 修改数据采集-点位
export function updateCollectPoint(data) {
  return request({
    url: '/manager/collectPoint/edit',
    method: 'post',
    data: data
  })
}

// 删除数据采集-点位
export function delCollectPoint(pointId) {
  return request({
    url: '/manager/collectPoint/remove/' + pointId,
    method: 'get'
  })
}

// 导入数据采集-点位
export function importCollectPoint(data) {
  return request({
    url: '/manager/collectPoint/importData',
    method: 'post',
    data: data
  })
}
